package org.zxp.designpattern.adapter;


/**
 * @program: effectiveJava
 * @description: 简单计算类，只有加减乘除的方法
 * @author: X-Pacific zhang
 * @create: 2019-08-22 15:17
 **/
public class SimpleCalculate extends AbstractCalculateAdapter {
    @Override
    public int plus(int a, int b) {
        return super.plus(a, b);
    }
    @Override
    public int multiply(int a, int b) {
        return super.multiply(a, b);
    }
    @Override
    public int subtract(int a, int b) {
        return super.subtract(a, b);
    }
    @Override
    public int divide(int a, int b) {
        return super.divide(a, b);
    }

    @Override
    public int hook(int a) {
        return a;
    }
}
